package cn.hesion.Partition;
/**
 * ClassName: PartitionReduce <br/>
 * Description: <br/>
 * date: 2021/2/3 10:30<br/>
 *
 * @author Hesion<br />
 * @version
 * @since JDK 1.8
 */

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;


/**
 * @program: ClientDemo
 * @description:
 * @author: hesion
 * @create: 2021-02-03 10:30
 **/
public class PartitionReduce extends Reducer<Text,PartitionBean, NullWritable,PartitionBean> {
    @Override
    protected void reduce(Text key, Iterable<PartitionBean> values, Context context) throws IOException, InterruptedException {
        for (PartitionBean bean : values) {
            context.write(NullWritable.get(),bean);
        }
    }
}
